<!--{template admin/tpl/header}-->
<div class="mainarea">
	<div class="maininner">
		<div class="tabs_header">
			<ul class="tabs">
				<li$actives[1]><a href="admincp.php?ac=video&rewardtype=1"><span>影片分类</span></a></li>
				<li$actives[2]><a href="admincp.php?ac=video&rewardtype=2"><span>地域分类</span></a></li>
				<li$actives[3]><a href="admincp.php?ac=video&rewardtype=3"><span>播放器设置</span></a></li>
				<li$actives[4]><a href="admincp.php?ac=video&rewardtype=4&op=add"><span>积分设置</span></a></li>
				<!--{if $_GET['rewardtype']!='4'}-->
				<li class="null"><a href="admincp.php?ac=video&rewardtype=$_GET['rewardtype']&op=add">
				<!--{if $_GET['rewardtype']=='1'}-->
				添加影片类别
				<!--{elseif $_GET['rewardtype']=='2'}-->
				添加地域分类
				<!--{else}-->
				添加播放器
				<!--{/if}-->
				</a></li>
				<!--{/if}-->
			</ul>
		</div>
<!--{if $_GET['op'] == 'delete'}-->
	<form method="post" action="admincp.php?ac=video&op=delete&rewardtype={$_GET['rewardtype']}&id=$_GET[id]">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<input type="hidden" name="rewardtype" value="$_GET['rewardtype']">
	<div class="bdrcontent">
	<div class="topactions">
		
		<!--{if $_GET['rewardtype']=='3'}-->
		<font color="red">请先修改使用此播放器的电影信息，再删除该栏目；</font>
		<!--{else}-->
		该栏目删除后，请选择该栏目下面已有的电影会归类到那个新栏目。
		<!--{/if}-->
	</div>
	<!--{if $_GET['rewardtype']!='3'}-->
	<table cellspacing="0" cellpadding="0" class="formtable">
	<tr>
		<th width="150">栏目下的电影新归类</th>
		<td>
		<select name="newfieldid">
		<!--{loop $newfield $value}-->
		<option value="{$value[typeid]}{$value[regionid]}">{$value[typename]}{$value[regionname]}</option>
		<!--{/loop}-->
		</select>
		</td>
	</tr>
	</table>
	<!--{/if}-->
	</div>
	
	<div class="footactions">
		<input type="submit" name="deletesubmit" value="确定删除" class="submit">
	</div>
	</form>

<!--{else}-->

	<form method="post" action="admincp.php?ac=video&rewardtype={$_GET['rewardtype']}&id=$thevalue[id]">
	<input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
	<div class="bdrcontent">

	<!--{if empty($_GET['op'])}-->
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr>
			<th>名称</th>
			<th>显示顺序</th>
			<th width="80">操作</th>
		</tr>
		<!--{loop $list $value}-->
		<tr>
			<th>$value[name]</th>
			<td><input type="text" name="displayorder[{$value[id]}]" value="$value[sort]" size="5"></td>
			<td width="80">
			<a href="admincp.php?ac=video&op=edit&rewardtype={$_GET['rewardtype']}&id=$value[id]">编辑</a> | 
			<a href="admincp.php?ac=video&op=delete&rewardtype={$_GET['rewardtype']}&id=$value[id]">删除</a></td>
		</tr>
		<!--{/loop}-->
		</table>
	</div>
	
	<div class="footactions">
		<input type="hidden" name="rewardtype" value="$_GET['rewardtype']"><input type="submit" name="ordersubmit" value="更新排序" class="submit">
	</div>
	
	</form>
	
	<!--{else}-->
		<!--{if $_GET['rewardtype']=='1'|| $_GET['rewardtype']=='2'}-->
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><th style="width:15em;">分类名称<input type="hidden" name="rewardtype" value="$_GET['rewardtype']"></th><td><input type="text" name="type" value="$thevalue[type]"><input type="hidden" name="id" value="$thevalue[id]"></td></tr>
		<tr><th>显示顺序</th><td><input type="text" name="displayorder" value="$thevalue[sort]" size="5"></td></tr>
		</table>
		<!--{elseif $_GET['rewardtype']=='4'}-->
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><th style="width:15em;">观看影片扣除积分<input type="hidden" name="rewardtype" value="4"></th><td><input type="text" name="kanmovie" value="$value[kanmovie]"><input type="hidden" name="id" value="4"></td></tr>
		<tr><th>发布影片奖励积分</th><td><input type="text" name="sendmovie" value="$value[sendmovie]" size="5"></td></tr>
		<tr><th>电影评分奖励积分</th><td><input type="text" name="pingmovie" value="$value[pingmovie]" size="5"></td></tr>
		</table>
		<!--{else}-->
		<table cellspacing="0" cellpadding="0" class="formtable">
		<tr><th style="width:15em;">播放器名称<input type="hidden" name="rewardtype" value="$_GET['rewardtype']"></th><td><input type="text" name="type" value="$thevalue[type]"><input type="hidden" name="id" value="$thevalue[id]"></td></tr>
		<tr><th>显示顺序</th><td><input type="text" name="displayorder" value="$thevalue[sort]" size="5"></td></tr>
		<tr><th>播放器代码</th><td><textarea rows="10" style="width:98%;" name="playcode">$thevalue[code]</textarea></td></tr>
		</table>
		<!--{/if}-->
	</div>
		
	<div class="footactions">
		<input type="submit" name="videosubmit" value="提交" class="submit">
	</div>
	
	</form>
	<!--{/if}-->

<!--{/if}-->

</div>
</div>

<div class="side">
	<!--{template admin/tpl/side}-->
</div>

<!--{template admin/tpl/footer}-->